#define _CRT_SECURE_NO_WARNINGS 1
#include"stack.h"
void test()
{
	stack st;
	stackInit(&st);

	stackPush(&st, 1);
	stackPush(&st, 2);
	stackPush(&st, 3);
	stackPush(&st, 4);

	printf("%d ", stackTop(&st));
	stackPop(&st);
	printf("%d ", stackTop(&st));
	stackPop(&st);
	stackPush(&st, 5);
	stackPush(&st, 6);

    //int ret = stackTop(&st);
	//printf("%d", ret);

	while (!stackEmpty(&st))
	{
		printf("%d ",stackTop(&st));
		stackPop(&st);
	}


	stackDestroy(&st);

}

int main()
{
	test();
	return 0;
}
void test1()
{
	char s[] = "({{{{}}}))";
	bool ret = isValid(s);
	
}